// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import $notice from '@/utils/open/notice'
import $common from '@/utils/open/common'
import $validate from '@/utils/open/validate'
// import './permission'

Vue.prototype.$notice = $notice
Vue.prototype.$common = $common
Vue.prototype.$validate = $validate

// 懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)

import SignCanvas from 'sign-canvas'
Vue.use(SignCanvas)

// import Vant from 'vant'
// import 'vant/lib/index.css'
// Vue.use(Vant)

// 全局引入按需引入UI库 vant
import '@/plugins/vant'
import '@/plugins/index'

// 引入全局样式
import '@/assets/css/index.scss'
// import '@/assets/styles/index.scss'
import '@/assets/iconfont/iconfont.css'
import '@/assets/styles/main.css'
import '@/assets/styles/custom-style.scss'

// 移动端适配
// import 'lib-flexible/flexible.js'
import '@/plugins/lib-flexible/flexible.js'

import signalr from '@/utils/signalR'
Vue.use(signalr)

import './filters'
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  signalr,
  render: h => h(App)
})
